
package com.probiz.estore.system.dao;

import java.util.List;

import com.probiz.estore.common.model.system.MailQueue;
import com.probiz.estore.core.dao.GenericDao;

/**
 * Dao interface for MailQueue.
 */
public interface MailQueueDao extends GenericDao<MailQueue> {
	List<MailQueue> fetchEmailListToProcess(int numOfEmailsPerTime);
	/**
	 * 清除过期邮件
	 */
	public void deleteExpiredEmails(int daysToKeep);
	/**
	 * 清理异常状态的邮件队列
	 */
	public void resetIncorrectEmails();

}